<?php

class Admin_Model_Ward extends Zend_Db_Table_Abstract
{
    protected $_name = 'ward';
    public function getDataByDistrict($district){
    	$query = $this->select()
                        ->from($this->_name)
                        ->where('districtid=?', (int)$district);
    	return $this->fetchAll($query);
    }
    public function getAllData(){        
        $query = $this->select()
                    ->setIntegrityCheck(false)                        
                    ->from($this->_name);                                                                
        return $this->fetchAll($query);        
    }
    
}

